import request from '@/utils/request'

// 查询炼厂信息列表
export function listRefinery(query) {
  return request({
    url: '/report/refinery/list',
    method: 'get',
    params: query
  })
}
export function listRefineryNoPage(query) {
  return request({
    url: '/report/refinery/listNoPage',
    method: 'get',
    params: query
  })
}
// 查询炼厂信息详细
export function getRefinery(id) {
  return request({
    url: '/report/refinery/' + id,
    method: 'get'
  })
}

// 新增炼厂信息
export function addRefinery(data) {
  return request({
    url: '/report/refinery',
    method: 'post',
    data: data
  })
}

// 修改炼厂信息
export function updateRefinery(data) {
  return request({
    url: '/report/refinery',
    method: 'put',
    data: data
  })
}

// 删除炼厂信息
export function delRefinery(id) {
  return request({
    url: '/report/refinery/' + id,
    method: 'delete'
  })
}
